/*
 * fixedpointsextractor.h
 *
 *      Author: Jerome RD Soine and Christoph A Brand
 *      Institution: Schwarz goup, Institute for Theoretical Physics, Heidelberg University, Germany
 */

#ifndef FIXEDPOINTSEXTRACTOR_H_
#define FIXEDPOINTSEXTRACTOR_H_

#include <fstream>
#include <vector>
#include "../../base/vertex.h"

class FixedPointsExtractor {
	GeomObject * g;
public:
	FixedPointsExtractor(GeomObject * G){g=G;};
	void writeToFile(ofstream & fout){
		vector<Vertex*> vertices = *g->getVertices();
		fout << "SCALARS points_fixed int 1" << endl << "LOOKUP_TABLE default" << endl;
		for(unsigned int i=0; i<vertices.size(); i++){
			if(vertices[i]->isFixed()) fout << 1 << endl;
			else fout << 0 << endl;
		}
	}

};

#endif /* FIXEDPOINTSEXTRACTOR_H_ */
